import Vue from 'vue'
import Router from 'vue-router'
import Login from './views/Login.vue'
import Home from './views/Home.vue'
import fa from "element-ui/src/locale/lang/fa";

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Login',
            component: Login,
            hidden: true,
        }, {
            path: '/home',
            name: 'Home',
            component: Home,
            hidden: true,
            // meta: {
            //     roles: ['admin', 'user']
            // },
            // children: [
            //     {
            //         path: '/chat',
            //         name: '在线聊天',
            //         component: FriendChat,
            //         hidden: true
            //     }, {
            //         path: '/hrinfo',
            //         name: '个人中心',
            //         component: HrInfo,
            //         hidden: true
            //     }
            // ]
        },
        // {
        //     path: '*',
        //     redirect: '/'
        // }
    ]
});
